class Person:
    def __init__(self, name, gender):
        self.name = name
        self.gender = gender

    def __str__(self):
        return f"Person(name={self.name},gender={self.gender})"


person = Person('张三', "男")
print(dir(person))
print(type(person))
print(person)
